.image-uploader {
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

.uploader-card {
  background: linear-gradient(135deg, var(--card-bg), var(--card-bg-darker));
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.uploader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
}

.uploader-card .ant-card-body {
  padding: 24px;
}

.uploader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.uploader-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.uploader-card h4 {
  color: var(--text-color);
  margin-bottom: 0;
  font-weight: 600;
}

.upload-area {
  margin-top: 20px;
  background-color: var(--card-bg-darker);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area .ant-upload {
  width: 100%;
  height: 100%;
  padding: 30px 20px;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(14, 165, 233, 0.05));
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.upload-area:hover:not(.disabled)::before {
  opacity: 1;
}

.upload-area:hover:not(.disabled) {
  border-color: var(--primary-color);
  transform: scale(1.01);
}

.upload-area.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-hint {
  text-align: center;
  position: relative;
  z-index: 2;
}

.ant-upload-drag-icon {
  color: var(--primary-color);
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
  transition: transform 0.3s;
}

.upload-area:hover:not(.disabled) .ant-upload-drag-icon {
  transform: translateY(-5px);
  color: var(--secondary-color);
}

.ant-upload-text {
  color: var(--text-color);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
}

.ant-upload-hint {
  color: var(--text-secondary);
}

.preview-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.preview-container:hover .preview-image {
  transform: scale(1.03);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}

.preview-container:hover .preview-overlay {
  opacity: 1;
}

.preview-overlay .ant-typography {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.image-info {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-images {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.example-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.example-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.example-thumbnail:hover:not(.disabled) {
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.example-thumbnail.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.example-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.example-thumbnail:hover:not(.disabled) img {
  transform: scale(1.1);
}

.thumbnail-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.loading-overlay .ant-spin {
  color: white;
}

/* Animation */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.ant-upload-drag-icon {
  animation: floatUpDown 3s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .uploader-card .ant-card-body {
    padding: 16px;
  }
  
  .preview-container {
    height: 200px;
  }
}